<template>

	<view>
		<!-- 分类导航区域 -->

		<view class="nav-box">
			<view  class="item" @click="toLearn">
				<view class="title">在线学习</view>
				<image style="width: 138rpx; height: 116rpx;" class="img-icon" :src="getimageBaseUrl('main-study.png')">
				</image>

			</view>

			<view  class="item" @click="toAtivity">
				<view class="title">活动预览</view>
				<image style="width: 128rpx; height: 106rpx;" class="img-icon"
					:src="getimageBaseUrl('main-active.png')"></image>

			</view>

			<view  class="item">
				<view class="title">考核预约</view>
				<image style="width: 80rpx; height: 76rpx; margin-top: 15rpx;" class="img-icon" :src="getimageBaseUrl('main-kh.png')">
				</image>

			</view>
		</view>

	</view>
</template>

<script>
	export default {
		name: "m-navigation",
		data() {
			return {};
		},
		onLoad() {

		},
		methods: {
			async toAtivity() {
				uni.navigateTo({
					url: '/pages/activity/activity'
				})
			},
			async toLearn() {
				uni.navigateTo({
					url: '/pages/study/study'
				})
			},
		}
	}
</script>

<style lang="scss">
	.nav-box {
		margin-top: 110rpx;
		width: 94%;
		margin-left: 3%;
		display: flex;
		height: 176rpx;
		padding: 0;
		justify-content: space-around;
		.item {
			
			font-size: 28rpx;
			color: rgba(51, 51, 51, 1);
			height: 176rpx;
			width: 218rpx;
			background: rgba(255, 255, 255, 1);
			box-shadow: 0px 4px 20px 0px rgba(52, 71, 105, 0.1);
			display: flex;
			flex-direction: column;
			align-items: center;
			border-radius: 15rpx;
			.title {
				margin-top: 32rpx;
			}
		}
	}
</style>
